<template>
  <li class="play-list-card fl">
    <div class="top">
      <img
        :src="item.picUrl ? item.picUrl : item.coverImgUrl | completeImageUrl"
        alt=""
      />
      <div class="play">
        <div class="icon icon_base"></div>

        <div class="num">{{ item.playCount | parsePlayCount }}</div>
      </div>
    </div>

    <div class="bottom e_2">{{ item.name }}</div>
  </li>
</template>

<script>
export default {
  props: {
    item: Object,
  },
};
</script>

<style lang="less" scoped>
.play-list-card {
  width: 115px;
  margin-right: 20px;

  & > .top {
    position: relative;

    img {
      border-radius: 10px;
    }

    & > .play {
      position: absolute;
      bottom: 5px;
      right: 0;
      height: 30px;
      color: #fff;
      background-color: #707070b4;
      border-radius: 10px;
      display: flex;
      align-items: center;
      font-size: 10px;

      .icon {
        width: 30px;
        height: 100%;
        background-image: url("../../assets/播放白色实心.png");
      }

      .num {
        font-weight: bolder;
      }
    }
  }
}
</style>
